Better Garmin icon mappings for geocaches from Ian Mahuron.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 28 Jul 2003 16:43:53 +0000 (16:43 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 28 Jul 2003 16:43:53 +0000 (16:43 +0000)
gpsbabel/garmin_tables.h
gpsbabel/internal_styles.c
gpsbabel/mapsource.c

index a90fe5e0dbb4fc770d7e57fdefa766cea5d3b8e0..c7d56c99dab379efe0a4970e06b608f4aa7dbbd9 100644 (file)
@@ -174,5 +174,8 @@ static icon_mapping_t icon_table[] = {
        {    17,    17, "White Buoy" },
        {    35,    36, "White Dot" },
        {    88,  8219, "Zoo" },
+       {   117,  8255, "Micro-Cache" },   /* icon for "Geocache" */
+       {    48,   161, "Virtual cache" }, /* icon for "Scenic Area" */
+       {   117,  8255, "Multi-Cache" },   /* icon for "Geocache" */
        {    -1,    -1, NULL },
 };
index ad0a04065238354e442ae93a598dfd3254fb6bd4..1751a6d21f07513f7c26227d6fb56980042e8304 100644 (file)
@@ -1,6 +1,29 @@
-/* This file is machine-generated from the style/ directory */
+/* This file is machine-generated from the contents of style/ */
 /* by mkstyle.sh.   Editing it by hand is an exeedingly bad idea. */
 
+static char arc[] = 
+"# gpsbabel XCSV style file\n"
+"#\n"
+"# Format: GPSBabel arc filter format\n"
+"# Author: Ron Parker\n"
+"#   Date: 17 July 2003\n"
+"#\n"
+
+"DESCRIPTION           GPSBabel arc filter file\n"
+"EXTENSION             txt\n"
+
+"#\n"
+"# FILE LAYOUT DEFINITIIONS:\n"
+"#\n"
+"FIELD_DELIMITER               TAB\n"
+"RECORD_DELIMITER      NEWLINE\n"
+
+"#\n"
+"# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:\n"
+"#\n"
+"IFIELD        LAT_DECIMAL, \"\", \"%08.5f\"\n"
+"IFIELD        LON_DECIMAL, \"\", \"%08.5f\"\n"
+;
 static char csv[] = 
 "# gpsbabel XCSV style file\n"
 "#\n"
@@ -458,4 +481,4 @@ static char xmapwpt[] =
 "IFIELD        DESCRIPTION, \"\", \"%-.78s\"\n"
 ;
 #include "defs.h"
-style_vecs_t style_list[] = {{ "xmapwpt", xmapwpt } , { "xmap", xmap } , { "s_and_t", s_and_t } , { "ozi", ozi } , { "nima", nima } , { "mxf", mxf } , { "gpsman", gpsman } , { "gpsdrive", gpsdrive } , { "fugawi", fugawi } , { "dna", dna } , { "custom", custom } , { "csv", csv } ,  {0,0}};
+style_vecs_t style_list[] = {{ "xmapwpt", xmapwpt } , { "xmap", xmap } , { "s_and_t", s_and_t } , { "ozi", ozi } , { "nima", nima } , { "mxf", mxf } , { "gpsman", gpsman } , { "gpsdrive", gpsdrive } , { "fugawi", fugawi } , { "dna", dna } , { "custom", custom } , { "csv", csv } , { "arc", arc } ,  {0,0}};
index 26f2f1b7b3b7bf3f7c163ed5103ec7e66888a2b8..6b4a9b08f54c13612e01e7f24822c78f53b18170 100644 (file)
@@ -257,7 +257,7 @@ mps_waypt_pr(const waypoint *wpt)
 
        icon = mps_find_icon_number_from_desc(wpt->icon_descr, MAPSOURCE);
 
-       if (get_cache_icon(wpt)) {
+       if (get_cache_icon(wpt) && (strcmp(wpt->icon_descr, "Geocache Found") != 0)) {
                icon = mps_find_icon_number_from_desc(get_cache_icon(wpt), MAPSOURCE);
        }